﻿using System.Drawing;
using WeifenLuo.WinFormsUI.Docking;
using WeifenLuo.WinFormsUI.ThemeVS2015;

namespace WindowsFormsApp1.Theme
{
    public class CustomDarkTheme : VS2015DarkTheme
    {
        public CustomDarkTheme() {
            //theme.Measures.SplitterSize = 24; // 分割线
            //theme.Measures.DockPadding = 36;  // 外圈padding
            //var tf = theme.Skin.DockPaneStripSkin.TextFont;
            //theme.Skin.DockPaneStripSkin.TextFont = new Font("Segoe UI", tf.Size);  // Tab 字体
            // 2.1 修改文档窗口活动Tab高亮色
            Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.StartColor = Color.Coral;
            Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.EndColor = Color.Tomato;
            Skin.DockPaneStripSkin.DocumentGradient.ActiveTabGradient.TextColor = Color.White;
            // 2.2 修改工具窗口活动Tab颜色
            Skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.StartColor = Color.LightSkyBlue;
            Skin.DockPaneStripSkin.ToolWindowGradient.ActiveTabGradient.EndColor = Color.DodgerBlue;
            Skin.DockPaneStripSkin.ToolWindowGradient.ActiveCaptionGradient.StartColor = Color.Gold;
        }

    }

    //public class NoHighlightTabRenderer 
    //{
    //    protected override void DrawTabHighlightBackground(Graphics g, Rectangle rect)
    //    {
    //        // 完全禁用选中高亮效果 (留空不绘制)
    //    }
    //    protected override void DrawTabSelectedBorder(Graphics g, Rectangle rect)
    //    {
    //        // 禁用选中边框 (留空不绘制)
    //    }
    //    protected override void DrawTabSelectedBackground(Graphics g, Rectangle rect)
    //    {
    //        // 可选：如果需要完全保持未选中样式，调用非选中状态的绘制方法
    //        base.DrawTabUnselected(g, rect);
    //    }
    //}
}
